package com.utils.compare;

import com.model.TChina;
import com.model.TSysFunc;

import java.text.Collator;
import java.util.Comparator;
import java.util.Locale;

/**
 *
 */
public class CompareFunc implements Comparator {
    @Override
    public int compare (Object o1, Object o2) {
        TSysFunc t1 = (TSysFunc) o1;
        TSysFunc t2 = (TSysFunc) o2;
        Collator instance = Collator.getInstance(Locale.CHINA);
        return t1.getId().intValue()-t2.getId().intValue();
    }
}
